package com.canaan.business.domain.basic;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 库区对象 wms_storehouse_area
 *
 * @author ruoyi
 * @date 2022-11-29
 */
@TableName("wms_storehouse_area")
@Data
public class WmsStorehouseArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 库区编号 */
    @Excel(name = "库区编号")
    private String no;

    /** 库区名称 */
    @Excel(name = "库区名称")
    private String name;

    /** 仓库编号 */
    @Excel(name = "仓库编号")
    private String storehouseNo;

    /** 仓库名称 */
    @Excel(name = "仓库名称", type = Excel.Type.EXPORT)
    private String storehouseName;

    /** 状态 */
//    @Excel(name = "状态")
    private String status;

    /** 外部编号 */
//    @Excel(name = "外部编号")
    private String outerNo;


    /**
     * 是否备料区
     */
    @Excel(name = "是否备料区", type = Excel.Type.EXPORT)
    private String  whetherMp;

    /** 是否删除：1是 0否 */
    private String delFlag;

    /** 排序 */
//    @Excel(name = "排序")
    private Integer sort;

    /** 备注 */
//    @Excel(name = "备注")
    private String remark;


    /** 码货员字符串 */
    @Excel(name = "码货员", type = Excel.Type.EXPORT)
    private String areaShipperStr;

    /** 拣货员字符串 */
    @Excel(name = "拣货员", type = Excel.Type.EXPORT)
    private String areaPickerStr;

    /** 创建人名称 */
    @Excel(name = "创建人", type = Excel.Type.EXPORT)
    private String createBy;

    /** 创建时间 */
    @Excel(name = "创建时间", type = Excel.Type.EXPORT, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 最后更新人名称 */
    @Excel(name = "最后更新人", type = Excel.Type.EXPORT)
    private String updateBy;

    /** 更新时间 */
    @Excel(name = "最后更新时间", type = Excel.Type.EXPORT, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 码货员列表 */
    private List<StorehouseAreaShipper> areaShipperList;

    /** 拣货员列表 */
    private List<StorehouseAreaPicker> areaPickerList;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("storehouseNo", getStorehouseNo())
            .append("storehouseName", getStorehouseName())
            .append("no", getNo())
            .append("name", getName())
            .append("status", getStatus())
            .append("outerNo", getOuterNo())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .toString();
    }

    private List<Long> ids;

    public List<Long> getIds() {
        return ids;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }

    public List<StorehouseAreaShipper> getAreaShipperList() {
        return areaShipperList;
    }

    public void setAreaShipperList(List<StorehouseAreaShipper> areaShipperList) {
        this.areaShipperList = areaShipperList;
    }

    public List<StorehouseAreaPicker> getAreaPickerList() {
        return areaPickerList;
    }

    public void setAreaPickerList(List<StorehouseAreaPicker> areaPickerList) {
        this.areaPickerList = areaPickerList;
    }
}
